<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String ctx = request.getContextPath();
	request.setAttribute("ctx", ctx);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>资料下载</title>


<meta content="all" name="robots" />

<link href="${ctx}/css/skin/style/style.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/css/skin/style/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${ctx}/js/common.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript"> 
 function addHits(id){
      $.ajax ({      
        url:"${ctx}/download.do?method=addHits&id="+id,
        type:"get",
        dateType:"text",
        success:function (t){
        }
      }
      )
    }
</script>
</head>

<body>


		<div class="crumbs">首页 &gt;资料下载&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/download.do?method=findbytype&dt=1">宣传资料</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/download.do?method=findbytype&dt=2">产品图片</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/download.do?method=findbytype&dt=3">视频资料</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/download.do?method=findbytype&dt=4">软件驱动</a></div> 
<div class="page">
  <div style="color:#826851; line-height:25px; padding-left:12px; padding-right:12px; padding-top:9px;">
 
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="453" 
                  height="28"></td>
              <td width="102">            </td>
            </tr>
            <tr>
              <td 
                  height="1" colspan="2" background="img/naBialym.gif"><img src="img/1x1_pix.gif" alt="" 
              width="10" height="1" /></td>
            </tr>
            <tr> 
              <td height="1" colspan="2">
               <c:forEach var="download" items="${list}">
               
              <table width=98% border=0 cellSpacing=1 cellpadding=3 bgColor=#b8b8b8><tr>
              <td width=60% height=22 bgColor=#F0F0F0>&nbsp;<b>${download.dataName}</b></td>
              <td bgColor=#F0F0F0 align=right>资料文档下载&nbsp;&#8226;&nbsp;产品资料&nbsp;</td></tr>
              <tr><td height=22 bgColor=#ffffff>&nbsp;<FONT COLOR=#666666>整理日期：</FONT>${download.createTime }&nbsp;&nbsp;<FONT COLOR=#666666>文件大小：</FONT>${download.dataSize }KB</td><td height=22 bgColor=#ffffff>
              <table width=100% border=0 cellpadding=0 cellspacing=0 bgColor=#ffffff><tr><td width=40% height=22>&nbsp;<a href="${ctx}/download/${download.downloadPath }" target="_blank" onclick="javascript:addHits(${download.dId})"><FONT COLOR=#0000FF>点击下载</FONT></a>(请点击鼠标右键，选择“目标另存为……”) </td><td align=center>点击数：${download.hitNumber}</td></tr></table></td></tr>
              <tr><td width=60% height=22 bgColor=#ffffff colspan=2>&nbsp;<FONT COLOR=#666666>软件语言：</FONT>${download.softLang }&nbsp;&nbsp;<FONT COLOR=#666666>运行环境：</FONT>${download.runTool }</td></tr>
            
              <tr><td height=1 colspan=2 bgcolor=#CCCCCC></td></tr></table>
              </c:forEach>
              <BR>              </td>
            
            
            
            </tr>
</table>
</div>
</div>

</body>

</html>